package bean;

import toolkit.Debug;
import domain.entity.Pizza;

public class PizzaBean extends AbstractBean
{
	private static final long serialVersionUID = 1L;
	
	public Pizza pizzaOfTheDay;
	/*
	private PizzaManager pizzaManager = null;
	
	private int dayOfWeek = new GregorianCalendar().get(Calendar.DAY_OF_WEEK);
	*/
	public PizzaBean()
	{
		Debug.log("PizzaBean()");
		
		/*pizzaManager = new PizzaManager();
		
		for (Pizza pizza: pizzaManager.getPizzas())
		{
			this.put(pizza.getName(), pizza);
			
			if(pizza.getDiscountDay() == dayOfWeek)
			{
				pizzaOfTheDay = pizza;
			}
		}*/
	}
	
	/*
	public Pizza getRandomPizzaOfTheDay()
	{
		Pizza pizzaOfTheDay = null;
		int dayOfWeek = new GregorianCalendar().get(Calendar.DAY_OF_WEEK);
		
		for (Pizza pizza: pizzaManager.getPizzas())
		{
			if (pizza.getDiscountDay() == dayOfWeek)
			{
				return pizzaOfTheDay;
			}
		}
		return null;
	}
	*/
}
